<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class MY_Loader</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> MY_Loader</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This class extends the core to support folder-structure for  widgets with loading libraries, models and views.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Fredrik Johansson &lt;<a href="mailto:tazzie76@gmail.com">tazzie76@gmail.com</a>&gt;</li>
				<li><span class="field">link:</span> <a href="https://code.google.com/p/onlineprojectplanner/">https://code.google.com/p/onlineprojectplanner/</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_libraries---MY_Loader.php.html">/libraries/MY_Loader.php</a> (line <span class="field"><a href="../__filesource/fsource_phpDocumentor__librariesMY_Loader.php.html#a10">10</a></span>)
		</p>
		
				
		<pre>CI_Loader
   |
   --MY_Loader</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																								<div class="var-title">
					<img src="../media/images/PrivateVariable.png" alt=" " />
					<span class="var-type">mixed</span>
					<a href="#$_widget_base_path" title="details" class="var-name">$_widget_base_path</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">MY_Loader</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#library_widget" title="details" class="method-name">library_widget</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$library</span> = <span class="var-default">''</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">NULL</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$object_name</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#model_widget" title="details" class="method-name">model_widget</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$model</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">''</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$db_conn</span> = <span class="var-default">FALSE</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#view_widget" title="details" class="method-name">view_widget</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$view</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$vars</span> = <span class="var-default">array()</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$return</span> = <span class="var-default">FALSE</span>])
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$_widget_base_path" id="$_widget_base_path"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/PrivateVariable.png" />
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$_widget_base_path</span>
			 = <span class="var-default"> &quot;&quot;</span>			(line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__librariesMY_Loader.php.html#a12">12</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__librariesMY_Loader.php.html#a14">14</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">MY_Loader</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodlibrary_widget" id="library_widget"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">library_widget</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__librariesMY_Loader.php.html#a37">37</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Library Loader (Widget)</p>
<p class="description"><p>NOTE; this function is taken from Codeigniter 1.7.2 (Loader Core Library)</p><p>This function lets users load and instantiate classes.  It is designed to be called from a user's app controllers.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			library_widget
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$library</span> = <span class="var-default">''</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">NULL</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$object_name</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$library</span><span class="var-description">: the name of the class</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$params</span><span class="var-description">: the optional parameters</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$object_name</span><span class="var-description">: an optional object name</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmodel_widget" id="model_widget"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">model_widget</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__librariesMY_Loader.php.html#a77">77</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Model Loader (Widget)</p>
<p class="description"><p>This function lets users load and instantiate models.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			model_widget
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$model</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">''</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$db_conn</span> = <span class="var-default">FALSE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$model</span><span class="var-description">: the name of the class</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: name for the model</span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$db_conn</span><span class="var-description">: database connection</span>			</li>
				</ul>
		
			
	</div>
<a name="methodview_widget" id="view_widget"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">view_widget</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__librariesMY_Loader.php.html#a104">104</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Load View (Widget)</p>
<p class="description"><p>This function is used to load a &quot;view&quot; file.  It has three parameters:</p><p><ol><li>The name of the &quot;view&quot; file to be included.</li><li>An associative array of data to be extracted for use in the view.</li><li>TRUE/FALSE - whether to return the data or load it.  In</li></ol> some cases it's advantageous to be able to return data so that  a developer can process it in some way.</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			view_widget
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$view</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$vars</span> = <span class="var-default">array()</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$return</span> = <span class="var-default">FALSE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$view</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$vars</span><span class="var-description">: (optional)</span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$return</span><span class="var-description">: (optional, default false)</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Wed, 01 Dec 2010 09:13:47 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>